<template>
    <div class="mine-container">
        <nut-cell is-link title="货物设置" @click="goto('/pages/cargo/index')" />
        <nut-cell is-link title="货物属性设置" @click="goto('/pages/attribute/index')" />
        <nut-button size="large" type="danger" @click="logout">退出登录</nut-button>
    </div>
</template>

<script lang="ts">
export default { name: '' }
</script>

<script lang="ts" setup>
import { reactive, ref, nextTick, onMounted, useAttrs, useSlots } from 'vue'
import Taro from '@tarojs/taro'

// const slots = useSlots()
// const attrs = useAttrs()
// const emits = defineEmits()

const state = reactive({

})

const goto = (url: string) => {
    Taro.navigateTo({ url })
}

const logout = () => {
    Taro.removeStorageSync('token')
    Taro.switchTab({ url: '/pages/login/index' })
}

// defineExpose({

// })
</script>
<style lang="scss" scoped>
.mine-container {
    padding: 10px;
}
</style>